#文字列操作関数の利用
#N.SUN 2022/11/24
#coding:utf-8
# modify string by string method
#Python has a set of built-in methods that you can use on strings.
#Note: All string methods returns new values. They do not change the original string.
# https://www.w3schools.com/python/python_ref_string.asp
# The upper() method returns the string in upper case:
a = " Hello, World! "
b = a.upper()
print(b)
#The lower() method returns the string in lower case:
b = a.lower()
print(b)
# Remove Whitespace
# Whitespace is the space before and/or after the actual text,
# and very often you want to remove this space.
# The strip() method removes any whitespace from the beginning or the end:
b = a.strip()
print(b)
# The replace() method replaces a string with another string:
b = a.replace("H", "J")
print(b)
# The split() method splits the string into substrings if it finds instances of the separator:
b = a.split(",")
print(b)